<template>
  <div>我在这里已经度过{{ life }}天啦！</div>
</template>

<script>
export default {
  computed: {
    life() {
      let time1 = new Date(1998 - 12 - 25);
      let time2 = new Date();
      let time = time2 - time1;
      let day = Math.floor(
        Math.floor(Math.floor(Math.floor(time / 1000) / 60) / 60) / 24
      );
      return day;
    },
  },
};
</script>

<style></style>
